﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Entities;

namespace Logic
{
    public class AutoFactory
    {
        public Autopark Create()
        {
            Autopark AUtopark = new Autopark();

            Legkovoi CAR = new Legkovoi();
            car.Name = "Nissan";
            car.Power = 100;
            car.Price = 6;
            car.Speed = 160;
            AUtopark.Add(car);

            Grusovoi grus = new Grusovoi();
            grus.Name = "Камаз";
            grus.Power = 700;
            grus.Price = 2000000;
            grus.Weight = 18000;
            AUtopark.Add(grus);

            Bus bus = new Bus();
            bus.Name = "ПАЗ";
            bus.Price = 1000000;
            bus.Seats = 25;

            AUtopark.Add(bus);




            return AUtopark;

        }
    }

}

